Cleanup Speed Management

- Refactors speed manipulation on server.
- Improves websocket events.
- Fixes a bug with keyboard events.