Add code to detect and update a collection of keys pressed