Update key_hook_controller.rb

Use 'rear' caused crash.