Handling of keypresses

Handle keypresses, pass on as UserEvent
Exit OpenGLEN thread when result is Destroy

When the result from processFrame is Destroy the OpenGLEN thread shall
exit and teardown the app.
Bugfix for rotated animation

Check that target values are enough when animation shall be rotated.
Formatting