Refined keyboard interaction functionality