pyPiano is a game kinda like Piano Tiles. In the game, there is a board with "notes" on it, and you have to press the specific keys on your keyboard when the note gets to the bottom. In pyPiano, there are six keys (instead of Piano Tiles' four) labeled S, D, F, J, K, and L respectively.
This was mainly inspired by a calculator program for the TI N-Spire with the same concept.
you can use threading so that you don't have to wait for input and rush the player
here is the answer (look in comments)