handleKey bugfix #16 for brackets v1.0.0