Updated: Refactored a bit to improve key responsiveness slightly.

Ensured that keys will not perform their default action in the browser.