summaryrefslogtreecommitdiffstats
path: root/src/Keyboard.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Keyboard.php')
-rw-r--r--src/Keyboard.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Keyboard.php b/src/Keyboard.php
index b338c0c..1b0fb68 100644
--- a/src/Keyboard.php
+++ b/src/Keyboard.php
@@ -1,4 +1,5 @@
<?php
+
namespace GameBoy;
class Keyboard
@@ -22,7 +23,7 @@ class Keyboard
if (!empty($key)) {
$this->keyDown($key);
- } else if (!empty($this->keyPressing)) {
+ } elseif (!empty($this->keyPressing)) {
$this->keyUp($this->keyPressing);
}