This sentence omits the object after "can".
The complete sentence should be: concentrate on doing something and then you can (achieve it)
"Ke" is explained here as: can, can
The full sentence is translated as: Only when you do something wholeheartedly and do your best (do it well)