Fixed overlay bug

Overlay opened on keyboard input even if the lightbox wasn't open.
Also changed some minor coding errors.
Merge pull request #5 from R4VANG3R/master

Fixed overlay bug <3