Short answer yes via code and timers.
You already found @jamin’s method
And I suppose by using variants of timers and counters you could get any reaction… I haven’t found it yet, but @Jamin also made some code that responds to coded button presses.