fixed rotating cube to be triggered by keyboard events