I was browsing through some of the base Java objects when I found a section of code surrounded by a scan: {} block. The following code is from the toLowerCase()
scan: {}
It is a label. It is a indicator for flow control.
label
If you look at your code, you see below
break scan;
When this happens, the flow exits completely the scan block.
scan
By the way, it can be any identifier, scan is not a keyword at all.