How to change kernal SCNKEY routine behaviour in Commodore 64
<p>I'm trying to implement game controls using kernel routines in Commodore 64.</p>

<p>Below code works with one exception. Each key stroke counted as single input. e.g.: There is no effect if you keep holding the button. You had to release and press again for each move. How can I change this behaviour? Simply I want to  repat the action as long as the key held down.</p>

<pre><code>    GETIN  =  $FFE4
    SCNKEY =  $FF9F

keyScan:
    jsr SCNKEY  ;get key
    jsr GETIN   ;put key in A

    cmp #65
    beq left

    cmp #68
    beq right

    jmp keyScan 
</code></pre>