Add support for key sequences, fixes #31