Tapping button to engage motors

Hello, my team is trying to find a way to only tap a button instead of holding it to turn a motor one way and then when you press it again it turns the other way back to 0 or have it turn off.