Workshop › Pool › Step 23 of 33
Every shot has power 8 so far. The up and down arrows change it by 1, between 2 and MAX_POWER.
```js
const MAX_POWER = 16
else if (event.key === 'ArrowUp') power = Math.min(MAX_POWER, power + 1)
else if (event.key === 'ArrowDown') power = Math.max(2, power - 1)
```Math.min(MAX_POWER, power + 1) adds one but never goes past 16; Math.max(2, power - 1) takes one off but never goes
under 2.BOUNCE write MAX_POWER.ArrowRight line, write the two lines.Skills: Keyboard and mouse input
← Clear the table A power bar →