Adding keyboard controls modal and fixing arrow-key wrapping