Keyboard input, Localization and some math