You should check into hall effect mechanical keyboards. They can have a floating actuation point for retrigger that is based on detecting press, partial release, press. It's really pretty cool.