This project detects when you press a key and when you let go of it. Clicking the flag resets everything. Clicking the square displays your recorded beats.