fix package bug and add key stroke interface