Yes, there is. The first one coming to mind (forgive me, it looks like this is one of my standard answers here meanwhile) is Tasker, the most complete automation tool for Android. It lets you define actions based on events; so for your case, you could let the event Hardware -> Camera button pressed trigger the action "Display off".
You want to turn it on again the same way -- so simply make it two "profiles", and combine two events: "Camera button pressed" & "State -> Display: On" (with the "task" to turn the display off), and with "Display: Off" the other way round.
Remark: There's a 7 day trial version available on the developers website, so you don't need to buy Tasker straight away without being able to test it. As soon as you've got everything configured, export your configuration. So if after those 7 days you still cannot decide whether to buy, simply uninstall Tasker, install it again, and import your configuration. Before you hit me: That's what the developer himself wrote, so nothing illegal.