For keypads I'd imagine you could easily handle whatever you need outside of an IRQ in the setWatch without too much trouble.
I mean, what you're suggesting is basically the ability to run JS code in an IRQ, since you'd have to be able to access I2C to read the values back. You can run 'compiled' JS in an IRQ I believe, but really that's pushing things a bit far I think. I could enable JS IRQs, but it's likely to be super unstable.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
For keypads I'd imagine you could easily handle whatever you need outside of an IRQ in the setWatch without too much trouble.
I mean, what you're suggesting is basically the ability to run JS code in an IRQ, since you'd have to be able to access I2C to read the values back. You can run 'compiled' JS in an IRQ I believe, but really that's pushing things a bit far I think. I could enable JS IRQs, but it's likely to be super unstable.