cleaned up code and fixed the shitty keyboard