update to new keyevent function