SpaceX interview question

Implement a function that detects when a user presses a specific combination of buttons.