Added stack functionality
Included key events library