fixing bugs and keyboard example added