Create button mashing mechanic?

How would I create a button mashing mechanic using blueprint in UE4 ?

Basically I want the play to key press the space bar for the door to open

Thanks !