Just a simple button detector that waits until a button is pressed