replaced console statements with redefinable function calls
exposed keypress for alternate init