Made key frequencies record keys pressed (probably broke a lot in the process)