Fixed moving coordinate with arrow keys.

Was broken by 60da622d0df1066f61fafaf8852063f18ee91c48.

The `state` object is now private to `_State` and cannot be externally accessed. Added a getter to retrieve the current coordinates.