Added dist to gitignore.
Added handlers for keys and mouse buttons.