fix key events sent to core
add group clear